﻿using System.Net;
using System.Net.Sockets;
using UtilZ.Dotnet.Ex.Communication.Base;

namespace UtilZ.Dotnet.Ex.Communication.Net.Udp
{
    /// <summary>
    /// Udp发送选项
    /// </summary>
    public class NetUdpSendOptions : SendOptionsAbs, IUdpSendOptions
    {
        /// <summary>
        /// SocketFlags
        /// </summary>
        public SocketFlags SocketFlags { get; set; }

        /// <summary>
        /// 目的地EndPoint
        /// </summary>
        public EndPoint DstEndPoint { get; set; }




        /// <summary>
        /// 构造函数
        /// </summary>
        public NetUdpSendOptions()
            : base()
        {

        }
    }

    /// <summary>
    /// udp 发送选项
    /// </summary>
    public interface IUdpSendOptions : ISendOptions
    {
        /// <summary>
        /// SocketFlags
        /// </summary>
        SocketFlags SocketFlags { get; }

        /// <summary>
        /// 目的地EndPoint
        /// </summary>
        EndPoint DstEndPoint { get; }
    }

}
